<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ include file="../tpl/head.jsp"%>
<link rel="stylesheet" href="statics/css/ExportBusiness/searchfirst.css">
<link rel="stylesheet" href="statics/css/secondarytitle.css">
<div class="layui-fluid">
    <div class="layui-card">
        <div class="layui-card-header layui-bg-cyan">
            <span>出运计划</span>
            <div class="titleright" id="statisticsDiv">
                <button class="layui-btn layui-btn-sm" style="margin-right:1em;" lay-filter="shipmentPlanStatistics"
                        lay-dropdown="{showBy: 'hover',align:'left', menus: [
                        {txt: '出运结汇一览总表', event:'s1'},
                        ]}">
                    <span>统计</span>
                    <i class="layui-icon layui-icon-triangle-d"></i>
                </button>
            </div>
        </div>
        <div class="layui-card-body">
            <div class="layui-row">
                <div class="layui-col-md12">
                    <div class="layui-tab layui-tab-card">
                        <form class="layui-form layui-from-pane" action="#" id="editor-form" lay-filter="editor-form">
                            <div class="layui-inline">
                                <label class="layui-form-label">单据类型</label>
                                <div class="layui-input-inline">
                                    <select name="documenttype" id="documenttype">
                                      <%--  <option value=""></option>
                                        <option value="1">草稿箱</option>
                                        <option value="2">待批箱</option>
                                        <option value="3">已批箱</option>
                                        <option value="4">完成箱</option>
                                        <option value="5">垃圾箱</option>--%>
                                    </select>
                                </div>
                            </div>
                            <div class="layui-inline">
                                <label class="layui-form-label">出运计划编号</label>
                                <div class="layui-input-inline">
                                    <input class="text layui-input" type="text"  name="documentsinformation" autocomplete="off" placeholder="">
                                </div>
                            </div>

                            <div class="layui-inline daterange">
                                <label class="layui-form-label">出运日期</label>
                                <div class="layui-input-inline">
                                    <input type="text" class="layui-input starttime" name="startshdate" id="startshdate" placeholder="年 - 月 - 日">&nbsp;至&nbsp;<input type="text" class="layui-input starttime" name="endshdate" id="endshdate" placeholder="年 - 月 - 日">
                                </div>
                            </div>
                            <div class="layui-inline daterange">
                                <label class="layui-form-label">制单日期</label>
                                <div class="layui-input-inline">
                                    <input type="text" class="layui-input starttime" name="startMakeTime" id="startMakeTime" placeholder="年 - 月 - 日">&nbsp;至&nbsp;<input type="text" class="layui-input starttime" name="endMakeTime" id="endMakeTime" placeholder="年 - 月 - 日">
                                </div>
                            </div>
                            <div class="layui-inline">
                                <label class="layui-form-label">签约公司</label>
                                <div class="layui-input-inline">
                                    <select name="signingcompany" lay-search>
                                        <option value=""></option>
                                        <!--<option value="text">签约公司</option>-->
                                    </select>
                                </div>
                            </div>
                            <div class="layui-inline">
                                <label class="layui-form-label">产品编码</label>
                                <div class="layui-input-inline">
                                    <input class="text layui-input" type="text"  name="productCode" autocomplete="off" placeholder="">
                                </div>
                            </div>
                            <div class="layui-inline">
                                <label class="layui-form-label">客户名称</label>
                                <div class="layui-input-inline">
                                    <input class="text layui-input" type="text" name="customerName" id="customerName" autocomplete="off" placeholder="">
                                </div>
                            </div>
                            <div class="layui-inline">
                                <label class="layui-form-label">所属操作员</label>
                                <div class="layui-input-inline" style="width: 200px">
                                    <div id="operationCode" class="xm-select-demo"></div>
                                </div>
                            </div>
                            <div class="layui-inline">
                                <label class="layui-form-label">所属业务员</label>
                                <div class="layui-input-inline" style="width: 200px">
                                    <div id="salesmanCode" class="xm-select-demo"></div>
                                </div>
                            </div>
                            <div class="layui-inline">
                                <label class="layui-form-label">部门操作员</label>
                                <div class="layui-input-inline" style="width: 200px">
                                    <div id="deptOperationCode" class="xm-select-demo"></div>
                                </div>
                            </div>
                            <div class="layui-inline">
                                <label class="layui-form-label">部门业务员</label>
                                <div class="layui-input-inline" style="width: 200px">
                                    <div id="deptSalesmanCode" class="xm-select-demo"></div>
                                </div>
                            </div>
                            <div class="layui-inline">
                                <label class="layui-form-label">销售合同号</label>
                                <div class="layui-input-inline">
                                    <input class="text layui-input" type="text"  name="salesContractNo" autocomplete="off" placeholder="">
                                </div>
                            </div>

                            <button class="layui-btn layui-btn-sm layui-btn-submit" lay-submit="" lay-filter="submitform" style="margin-left: 10px">搜索</button>
                            <button type="reset" class="layui-btn layui-btn-sm layui-btn-submit" id="clear">重置</button>
                        </form>
                        <div class="layui-card" style="text-align:right;margin-right:2em;display: none;" id="printOne">
                            <button class="layui-btn layui-btn-sm" lay-filter="printfn"
                                    lay-dropdown="{showBy: 'hover',align:'left', menus: [
                                    {layIcon:'layui-icon-print',txt: '出货计划单', event:'shipment'},
                                    {layIcon: 'layui-icon-print', txt: '仓库提货出货通知单', event:'warehousePickUpShipmentPlanReport'},
                                    {layIcon:'layui-icon-print',txt: '营销中心销售出货通知单 ', event:'salesShipment'},
                                    {layIcon:'layui-icon-print',txt: '青岛菲比送货清单', event:'shipmentPlanDeliveryListReport'},
                                    {layIcon:'layui-icon-print',txt: '青岛菲比箱贴', event:'shipmentPlanBoxStickReport'},
                                    {layIcon:'layui-icon-print',txt: '艾兰得营养品送货单', event:'shipmentPlanDeliveryNoteReport'},
                                    {layIcon:'layui-icon-print',txt: '溢赋送货单', event:'shipmentYFPlanDeliveryNoteReport'},
                                    ]}">
                                <span>打印</span>
                                <i class="layui-icon layui-icon-triangle-d"></i>
                            </button>
                        </div>
                        <div class="layui-card" style="text-align:right;margin-right:2em;display: none;" id="printTwo">
                            <button class="layui-btn layui-btn-sm" lay-filter="printfn"
                                    lay-dropdown="{showBy: 'hover',align:'left', menus: [
                                    {layIcon:'layui-icon-print',txt: 'RTCO PL', event:'shipmentPlanPackingFormatReport_RTCO_PL'},
                                    {layIcon:'layui-icon-print',txt: 'RTCO CI', event:'shipmentPlanInvoiceFormatReport_RTCO_CI'},
                                    {layIcon:'layui-icon-print',txt: 'GENSYU PL_HK', event:'shipmentPlanPackingFormatReport_GENSYU_PL_HK'},
                                    {layIcon:'layui-icon-print',txt: 'GENSYU CI_HK', event:'shipmentPlanInvoiceFormatReport_GENSYU_CI_HK'},
                                    {layIcon:'layui-icon-print',txt: 'GENSYU PL_SHANGHAI', event:'shipmentPlanPackingFormatReport_GENSYU_PL_SHANGHAI'},
                                    {layIcon:'layui-icon-print',txt: 'GENSYU CI_SHANGHAI', event:'shipmentPlanInvoiceFormatReport_GENSYU_CI_SHANGHAI'},
                                    {layIcon:'layui-icon-print',txt: 'FQ装箱单格式', event:'shipmentPlanPackingFormatReport'},
                                    {layIcon:'layui-icon-print',txt: 'FQ商业发票格式', event:'shipmentPlanInvoiceFormatReport'},
                                    {layIcon:'layui-icon-print',txt: 'FQ合同格式', event:'shipmentPlanContractFormatReport'},
                                    {layIcon:'layui-icon-print',txt: 'FQ装箱单格式CL', event:'shipmentPlanPackingFormatReportCL'},
                                    {layIcon:'layui-icon-print',txt: 'FQ商业发票格式CL', event:'shipmentPlanInvoiceFormatReportCL'},
                                    ]}">
                                <span>打印</span>
                                <i class="layui-icon layui-icon-triangle-d"></i>
                            </button>
                        </div>
                        <table class="layui-table" id="shipmentplanselect" lay-filter="shipmentplantable"></table>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>

<script type="text/html" id="shipmentplantoolbar">
    <a class="layui-btn layui-btn-sm layui-btn-normal" id="new" style="margin-left: 10px" lay-event="news">新建计划</a>
<%--    <a class="layui-btn layui-btn-sm layui-btn-normal" id="print" style="margin-left: 10px" lay-event="prints">打印</a>--%>
</script>

<script type="text/html" id="shipmentplaneditor">


    <%-- 审核状态1：草稿 2：待批  3：已批  4：完成  5：垃圾--%>
    {{# if(d.boxStatus=='1' ){ }}
        <a class="layui-btn layui-btn-sm layui-btn-normal" lay-event="update">修改</a>
        <a class="layui-btn layui-btn-sm layui-btn-normal" lay-event="submits">提交审批</a>
    <a class="layui-btn layui-btn-sm layui-btn-normal" lay-event="delect">删除</a>
    {{# } }}
    {{# if(d.boxStatus=='2'){ }}
        <a class="layui-btn layui-btn-sm layui-btn-normal" lay-event="update">修改</a>
        <a class="layui-btn layui-btn-sm layui-btn-normal" lay-event="backtothe">审批退回</a>
    {{# } }}
    {{# if(d.boxStatus=='2'){ }}
        {{# if(isMarketingDirectorMsn=='是' || isMsn=='是'){ }}
            <a class="layui-btn layui-btn-sm layui-btn-normal" lay-event="through">审批通过</a>
        {{# } }}
    {{# } }}
    {{# if(d.boxStatus=='3'){ }}
        {{# if(isMarketingDirectorMsn=='是' || isMsn=='是'){ }}
            <a class="layui-btn layui-btn-sm layui-btn-normal" lay-event="backtothe">审批退回</a>
        {{# } }}
        <a class="layui-btn layui-btn-sm layui-btn-normal" lay-event="complete">完成</a>
    {{# } }}
    {{# if(d.boxStatus=='5'){ }}
        <a class="layui-btn layui-btn-sm layui-btn-normal" lay-event="delect">删除</a>
        <a class="layui-btn layui-btn-sm layui-btn-normal" lay-event="reduction">还原</a>
    {{# } }}
    {{# if(d.boxStatus=='4'){ }}
        <a class="layui-btn layui-btn-sm layui-btn-normal" lay-event="back">退回</a>
    {{# } }}

<%--   &lt;%&ndash; 审核状态1：草稿 2：待批  3：已批  4：完成  5：垃圾&ndash;%&gt;--%>
<%--    {{# if(d.boxStatus=='1' ){ }}--%>
<%--    <a class="layui-btn layui-btn-sm layui-btn-normal" lay-event="update">修改</a>--%>
<%--    {{# } }}--%>
<%--   &lt;%&ndash;||d.boxStatus=='2' ||d.boxStatus=='3'&ndash;%&gt;--%>
<%--   {{# if(d.boxStatus=='1'){ }}--%>
<%--    <a class="layui-btn layui-btn-sm layui-btn-normal" lay-event="submits">提交审批</a>--%>
<%--    {{# } }}--%>
<%--    {{# if(d.boxStatus=='2'){ }}--%>
<%--    <a class="layui-btn layui-btn-sm layui-btn-normal" lay-event="through">审批通过</a>--%>
<%--    {{# } }}--%>
<%--    {{# if(d.boxStatus=='3' ||d.boxStatus=='4'){ }}--%>
<%--    <a class="layui-btn layui-btn-sm layui-btn-normal" lay-event="backtothe">审批退回</a>--%>
<%--    {{# } }}--%>
<%--    {{# if(d.boxStatus=='4'){ }}--%>
<%--    <a class="layui-btn layui-btn-sm layui-btn-normal" lay-event="complete">完成</a>--%>
<%--    {{# } }}--%>
<%--    {{# if(d.boxStatus=='1' ||d.boxStatus=='5'){ }}--%>
<%--    <a class="layui-btn layui-btn-sm layui-btn-normal" lay-event="delect">删除</a>--%>
<%--    {{# } }}--%>
<%--   {{# if(d.boxStatus=='5'){ }}--%>
<%--  <a class="layui-btn layui-btn-sm layui-btn-normal" lay-event="reduction">还原</a>--%>
<%--  {{# } }}--%>
</script>
<%@ include file="../tpl/foot.jsp"%>
<script src="statics/modules/xm-select.js"></script>
<script src="statics/js/ExportBusiness/shipmentplan.js"></script>